<?php
$auth = 0;
if(Auth::hasAuth('current_user')){
	$auth = 1;
}
echo json_encode(array("hasAuth"=>$auth));
?>